From: Richard M. Stallman Date: Sun, 17 Jul 1994 06:41:53 +0000 (+0000) Subject: [USE_X_TOOLKIT] (xmenu_show): Handle UnmapNotify events. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~90793 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=f22aa617007edf2fe6aff9b0dfc0601e4bf837aa;p=emacs.git [USE_X_TOOLKIT] (xmenu_show): Handle UnmapNotify events. --- diff --git a/src/xmenu.c b/src/xmenu.c index 8eb1c14c368..758b43995ab 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -1719,6 +1719,13 @@ xmenu_show (f, x, y, menubarp, keymaps, title, error) break; } } + else if (event.type == UnmapNotify) + { + /* If the menu disappears, there is no need to stay in the + loop. */ + if (event.xunmap.window == menu->core.window) + break; + } XtDispatchEvent (&event); if (queue_and_exit